home *** CD-ROM | disk | FTP | other *** search
- property field1, field2, field3, field4, sumfield
-
- on beginSprite me
- set X to integer(the text of field ("field" & field1))
- set y to integer(the text of field ("field" & field2))
- set z to integer(the text of field ("field" & field3))
- set zz to integer(the text of field ("field" & field4))
- set z to string(X + y + z + zz)
- set the text of field ("field" & sumfield) to z
- end
-
- on getPropertyDescriptionList me
- set description to [:]
- addProp(description, #field1, [#default: EMPTY, #format: #string, #comment: "add which field:"])
- addProp(description, #field2, [#default: EMPTY, #format: #string, #comment: "add which field:"])
- addProp(description, #field3, [#default: EMPTY, #format: #string, #comment: "add which field:"])
- addProp(description, #field4, [#default: EMPTY, #format: #string, #comment: "add which field:"])
- addProp(description, #sumfield, [#default: EMPTY, #format: #string, #comment: "sum field:"])
- return description
- end
-